package com.example.qts.presenter;

import com.example.qts.base.BasePresenter;
import com.example.qts.bean.Bean;
import com.example.qts.model.ListCallBack;
import com.example.qts.model.ListModel;
import com.example.qts.view.ListView;

public class ListPresenter extends BasePresenter<ListView> implements ListCallBack {
    private ListModel model;
    @Override
    protected void initModel() {
        model=new ListModel();
        addModel(model);
    }
    public void getdata(){
        model.addModel(this);
    }
    @Override
    public void onSuccess(Bean data) {
        mview.onSuccess(data);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
